﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OandPRbyUIDShift.aspx.cs" Inherits="StatisticData_OnceandPassRate_OandPRbyUIDShift" Title="按班次统计各测试员合格率" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
    <table style="vertical-align: top; width:60%;">
        <tr>
            <td style="vertical-align: text-top; width: 67px; height: 45px;">
                <asp:Label ID="Label4" runat="server" Text="日　期：" Width="115px" Height="18px"></asp:Label></td>
            <td style="width: 159px; height: 45px;">
            
            
            <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True"></asp:TextBox>                              
                
                <asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="TextBox1">
                </asp:CalendarExtender>
                
                &nbsp;</td>
                
            <td style="vertical-align: text-top; width: 81px; height: 45px;">
                <asp:Label ID="Label5" runat="server" Text="班　次：" Width="113px"></asp:Label></td>
            <td style="width: 85px; vertical-align: top; height: 45px;">
            
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
                </asp:DropDownList>
            </td>
            <td style="vertical-align: text-top; width: 100px; height: 45px;">
                &nbsp; &nbsp;&nbsp;
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查  询" /></td>
        </tr>
        </table>
        </div>
    </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
    <div>
        <table style="width: 100%">
            <tr>
                <td>
                    各测试员一次合格率：</td>
                <td>
                    各测试员最终合格率：</td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
                        GridLines="None" onpageindexchanging="GridView1_PageIndexChanging" 
                        PageSize="20" Visible="False">
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <Columns>
                            <asp:BoundField DataField="DayTime" HeaderText="测试员" />
                            <asp:BoundField DataField="Total" HeaderText="检验数" />
                            <asp:BoundField DataField="Element" HeaderText="合格数" />
                            <asp:BoundField DataField="Quantity" DataFormatString="{0:P}" 
                                HeaderText="合格率" />
                        </Columns>
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
                <td>
                    <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
                        GridLines="None" onpageindexchanging="GridView2_PageIndexChanging" 
                        PageSize="20">
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <Columns>
                            <asp:BoundField DataField="DayTime" HeaderText="测试员" />
                            <asp:BoundField DataField="Total" HeaderText="检验数" />
                            <asp:BoundField DataField="Element" HeaderText="合格数" />
                            <asp:BoundField DataField="Quantity" DataFormatString="{0:P}"  
                                HeaderText="合格率" />
                        </Columns>
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    <br />
    <br />    
    </div>
    </ContentTemplate>
    </asp:UpdatePanel> 
    </div>
</asp:Content>

